package com.example.demo.service;

import com.example.demo.entity.Userinfo;
import com.example.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: demo
 * @author: JCM
 * @create: 2023-03-01 13:16
 * @description:
 **/
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public Userinfo getUserById(Integer id) {
        return userMapper.getUserById(id);
    }

}
